๐ FLUX.2 [klein] โ Sub-second generation. Open weights, Apache 2.0, API from $0.014/image. Learn more โ
curl --request POST \
--url https://api.us1.bfl.ai/v1/flux-pro-1.1-ultra-finetuned \
--header 'Content-Type: application/json' \
--header 'x-key: <api-key>' \
--data '
{
"finetune_id": "my-finetune",
"finetune_strength": 1.2,
"prompt": "A beautiful landscape with mountains and a lake",
"seed": 42,
"aspect_ratio": "16:9",
"safety_tolerance": 2,
"output_format": "jpeg",
"image_prompt": "<string>",
"image_prompt_strength": 0.1,
"prompt_upsampling": false,
"webhook_url": "<string>",
"webhook_secret": "<string>"
}
'{
"id": "<string>",
"polling_url": "<string>",
"cost": 123,
"input_mp": 123,
"output_mp": 123
}Submits an image generation task with FLUX 1.1 [pro] finetune with ultra mode.
curl --request POST \
--url https://api.us1.bfl.ai/v1/flux-pro-1.1-ultra-finetuned \
--header 'Content-Type: application/json' \
--header 'x-key: <api-key>' \
--data '
{
"finetune_id": "my-finetune",
"finetune_strength": 1.2,
"prompt": "A beautiful landscape with mountains and a lake",
"seed": 42,
"aspect_ratio": "16:9",
"safety_tolerance": 2,
"output_format": "jpeg",
"image_prompt": "<string>",
"image_prompt_strength": 0.1,
"prompt_upsampling": false,
"webhook_url": "<string>",
"webhook_secret": "<string>"
}
'{
"id": "<string>",
"polling_url": "<string>",
"cost": 123,
"input_mp": 123,
"output_mp": 123
}Documentation Index
Fetch the complete documentation index at: https://docs.bfl.ml/llms.txt
Use this file to discover all available pages before exploring further.
Name of the LoRA to use. For LoRAs from other organizations (public or shared), use the format 'org-id/lora-name'.
"my-finetune"
Strength of the fine-tuned model. 0.0 means no influence, 1.0 means full influence. Allowed values up to 2.0
0 <= x <= 2The prompt to use for image generation.
"A beautiful landscape with mountains and a lake"
Optional seed for reproducibility. If not provided, a random seed will be used.
42
Aspect ratio of the image between 21:9 and 9:21
Tolerance level for input and output moderation. Between 0 and 6, 0 being most strict, 6 being least strict.
0 <= x <= 62
Output format for the generated image. Can be 'jpeg', 'png', or 'webp'.
jpeg, png, webp Optional image to remix in base64 format
Blend between the prompt and the image prompt
0 <= x <= 1Whether to perform upsampling on the prompt. If active, automatically modifies the prompt for more creative generation
URL to receive webhook notifications
1 - 2083Optional secret for webhook signature verification
Was this page helpful?